<template>
	<view class="page">
		<MallHeader title="收支详情"></MallHeader>
		<view class="box pad">
			<view class="header">
				<view class="header-tip">
					{{ info.describe }}
				</view>
				<view class="header-price">
					{{ info.money }}
				</view>
				<view class="header-cd">
					(CD ￥)
				</view>
			</view>
			<view class="info">
				<view class="item">
					<text class="label"> 类型：</text>
					支出
				</view>
				<view class="item">
					<text class="label"> 备注：</text>
					{{ info.remark }}
				</view>
				<view class="item">
					<text class="label"> 时间：</text>
					{{ info.create_time }}
				</view>
				<view class="item">
					<text class="label">交易单号：</text>
					{{ info.describe.toString().split('：')[1] }}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import MallHeader from '@/components/mallHeader/mallHeader'
	export default {
		components:{
			MallHeader,
		},
		data(){
			return {
				info: ''
			}
		},
		onLoad(e) {
			this.info = JSON.parse(e.id)
		}
	}
</script>

<style lang="scss" scoped>
	.box{
		margin-top: 30rpx;
		padding-top:40rpx;
		background-color: #FFFFFF;
		
		.header{
			text-align: center;
			padding-bottom:70rpx;
			border-bottom:1px solid #cdcdcd;
		}
		.header-tip{
			color: #333333;
			font-size: 32rpx;
		}
		.header-price{
			color: #333333;
			font-size: 60rpx;
			margin-top: 80rpx;
		}
		.header-cd{
			margin-top: 30rpx;
			color: #999999;
			font-size: 30rpx;
		}
		.info{
			margin-top: 60rpx;
			padding-bottom:60rpx;
			.item{
				display: flex;
				font-size: 30rpx;
				&:not(:first-child){
					margin-top:35rpx;
				}
				.label{
					width: 150rpx;
					color: #666666;
				}
			}
		}
		
	}
	
</style>
